#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.63])
AC_INIT([dmatrix], [0.1], [bugs@bugs.com.br])
AM_INIT_AUTOMAKE([dmatrix], [0.1])
AC_CONFIG_SRCDIR([dmatrix.c])
#AC_CONFIG_HEADERS([config.h])

# Checks for programs.
AC_PROG_CC

# Checks for libraries.
#AC_CHECK_LIB([memcache], [mc_new], [],[
#           echo "memcache not found"
#           exit -1])

PKG_CHECK_MODULES([MEMCACHE], libmemcached >= 0.8.0)
AC_SUBST(MEMCACHE_CFLAGS)
AC_SUBST(MEMCACHE_LIBS)

PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.2])
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)

# Checks for header files.
AC_CHECK_HEADERS([stdlib.h])

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.

AC_CONFIG_FILES([Makefile])
AC_OUTPUT
